package net.jiupinshi.util;

/**
 * @Despription: string 工具类
 * @Author: penghui.guo
 * @Date: 2018/10/5 15:57
 */
public class StringUtil {
    public static boolean isNotEmpty(String s){
        return (s != null) && !"".equals(s.trim());
    }

    public static boolean isEmpty(String s){
        return s == null || "".equals(s.trim());
    }

    public static void main(String[] args) {
        System.out.println(StringUtil.isNotEmpty(" "));
    }
}
